<div>
<strong>Prim numbers:</strong><br />
<ul>
{foreach from=$prim_numbers item=result_item}
    <li>{$result_item}</li>
{/foreach}
</ul>